projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d4485
)
GtkAboutDialog: Support https in links
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 29 Aug 2014 04:51:39 +0000
(
00:51
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 29 Aug 2014 04:51:39 +0000
(
00:51
-0400)
https://bugzilla.gnome.org/show_bug.cgi?id=680067
gtk/gtkaboutdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaboutdialog.c
b/gtk/gtkaboutdialog.c
index b76742e0ecb44a005c5e7564552bb8887cf4690c..5729d46474475dada305d39035eb058a47d04499 100644
(file)
--- a/
gtk/gtkaboutdialog.c
+++ b/
gtk/gtkaboutdialog.c
@@
-2081,6
+2081,9
@@
text_buffer_new (GtkAboutDialog *about,
q1 = strchr (q0, '<');
q2 = q1 ? strchr (q1, '>') : NULL;
r1 = strstr (q0, "http://");
+ r2 = strstr (q0, "https://");
+ if (!r1 || (r1 && r2 && r2 < r1))
+ r1 = r2;
if (r1)
{
r2 = strpbrk (r1, " \n\t>");
@@
-2206,6
+2209,9
@@
add_credits_section (GtkAboutDialog *about,
q1 = strchr (q0, '<');
q2 = q1 ? strchr (q1, '>') : NULL;
r1 = strstr (q0, "http://");
+ r2 = strstr (q0, "https://");
+ if (!r1 || (r1 && r2 && r2 < r1))
+ r1 = r2;
if (r1)
{
r2 = strpbrk (r1, " \n\t");